home *** CD-ROM | disk | FTP | other *** search
- ; NAME upper
- ; PURPOSE copies text1 to text2 forcing upper case
- ; DESIGN
- ; get first character
- ; while character is not terminator
- ; if character ASCII code > 64
- ; then
- ; and character with #&DF
- ; end if
- ; store character in text2
- ; get next charater
- ; end while
- ; store character in text2
-
- mov r8, #0
- ldrb r6, [r4]
- .loop
- cmp r6, #0
- beq done
- cmp r6, #64
- andge r6, r6, #&DF
- strb r6, [r5]
- add r4, r4, #1
- add r5, r5, #1
- ldrb r6, [r4]
- add r8, r8, #1
- b loop
- .done
- strb r6, [r5]
- str r8, [r1]
-
-
-
-
-
-
-
-
-
-
-
-
-
-